<?php

class Db_Tables_AdminsGroup extends Zend_Db_Table
{
    protected $_name = 'admins-group';
	
	function GetGroups()
	{
		$result = array();
		
		$rows = $this->fetchAll();
		
		if(!empty($rows))
		{
			foreach($rows as $row)
			{
				$result[$row['group_id']] = $row['group_name'];
			}
		}
		
		return $result;
	}
}